<template>
  <div>
    <!-- <div>我是首页</div> -->
    <van-tabbar v-model="active">
      <van-tabbar-item name="home" icon="home-o" to="/homepage"
        >首页</van-tabbar-item
      >
      <van-tabbar-item name="search" icon="search" to="/findhouse"
        >找房</van-tabbar-item
      >
      <van-tabbar-item name="friends" icon="friends-o" to="/info"
        >资讯</van-tabbar-item
      >
      <van-tabbar-item name="setting" icon="setting-o" to="/myinfo"
        >我的</van-tabbar-item
      >
    </van-tabbar>

    <!-- 二级路由出口 -->
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'Layout',
  data() {
    return {
      active: 'home',
    }
  },
}
</script>

<style></style>
